﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MotorcycleStore.DomainModel
{
	public class Photo
	{
		public virtual int? Id { get; set; }

		[Required]
		public byte[] PhotoData { get; set; }

		[Required]
		[StringLength(32)]
		public string ContentType { get; set; }

		[StringLength(128)]
		public string Caption { get; set; }

		[Range(1, 1200)]
		public short Height { get; set; }

		[Range(1, 1920)]
		public short Width { get; set; }
	}
}
